package cineplanet.modelo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the tab_precioentrada database table.
 * 
 */
@Embeddable
public class TabPrecioentradaPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private int LOC_IdLocal;

	private int PEN_IdDia;

	private int PEN_IdTipoPublico;

	private int PEN_IdTipoPelicula;

    public TabPrecioentradaPK() {
    }
	public int getLOC_IdLocal() {
		return this.LOC_IdLocal;
	}
	public void setLOC_IdLocal(int LOC_IdLocal) {
		this.LOC_IdLocal = LOC_IdLocal;
	}
	public int getPEN_IdDia() {
		return this.PEN_IdDia;
	}
	public void setPEN_IdDia(int PEN_IdDia) {
		this.PEN_IdDia = PEN_IdDia;
	}
	public int getPEN_IdTipoPublico() {
		return this.PEN_IdTipoPublico;
	}
	public void setPEN_IdTipoPublico(int PEN_IdTipoPublico) {
		this.PEN_IdTipoPublico = PEN_IdTipoPublico;
	}
	public int getPEN_IdTipoPelicula() {
		return this.PEN_IdTipoPelicula;
	}
	public void setPEN_IdTipoPelicula(int PEN_IdTipoPelicula) {
		this.PEN_IdTipoPelicula = PEN_IdTipoPelicula;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TabPrecioentradaPK)) {
			return false;
		}
		TabPrecioentradaPK castOther = (TabPrecioentradaPK)other;
		return 
			(this.LOC_IdLocal == castOther.LOC_IdLocal)
			&& (this.PEN_IdDia == castOther.PEN_IdDia)
			&& (this.PEN_IdTipoPublico == castOther.PEN_IdTipoPublico)
			&& (this.PEN_IdTipoPelicula == castOther.PEN_IdTipoPelicula);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.LOC_IdLocal;
		hash = hash * prime + this.PEN_IdDia;
		hash = hash * prime + this.PEN_IdTipoPublico;
		hash = hash * prime + this.PEN_IdTipoPelicula;
		
		return hash;
    }
}